import request from '@/utils/request'

export function getcourseList(data) {
  return request({
    url: '/SchedCourse/lists', // 课程列表
    method: 'post',
    data
  })
}

export function getcourseAll(data) {
  return request({
    url: '/SchedCourse/listsAll', // 课程列表(选择)
    method: 'post',
    data
  })
}

export function courseAddEdit(data) {
  return request({
    url: '/SchedCourse/AddEdit', // 添加课程
    method: 'post',
    data
  })
}

export function courseDels(data) {
  return request({
    url: '/SchedCourse/Dels', // 删除课程
    method: 'post',
    data
  })
}

export function courseDetails(data) {
  return request({
    url: '/SchedCourse/details', // 删除课程
    method: 'post',
    data
  })
}

export function getCourseshoolList(data) {
  return request({
    url: '/SchedCourseshool/lists', // 课程表列表
    method: 'post',
    data
  })
}

export function courseshoolDetails(data) {
  return request({
    url: '/SchedCourseshool/details', // 课程表详情
    method: 'post',
    data
  })
}

export function courseshoolAddEdit(data) {
  return request({
    url: '/SchedCourseshool/AddEdit', // 创建修改课程表
    method: 'post',
    data
  })
}
// 课时费
export function SchedClassfeeAddEdit(data) {
  return request({
    url: '/SchedClassfee/AddEdit', // 创建修改课程表
    method: 'post',
    data
  })
}

// 删除课时费
export function SchedClassfeeDel(data) {
  return request({
    url: '/SchedClassfee/Del', // 创建修改课程表
    method: 'post',
    data
  })
}


export function clearCourse(data) {
  return request({
    url: '/SchedCourseshool/clear_course',//清空当前课程表
    method: 'post',
    data
  })
}

export function copyCourse(data) {
  return request({
    url: '/SchedCourseshool/copy_course',//复制当前课表到下周、当月、下月
    method: 'post',
    data
  })
}

export function stopCourse(data) {
  return request({
    url: '/SchedCourseshool/stop_course',//停课、复课
    method: 'post',
    data
  })
}

export function getDdels(data) {
  return request({
    url: '/SchedCourseshool/Dels',//停课、复课
    method: 'post',
    data
  })
}

export function reservationDetail(data) {
  return request({
    url: '/SchedSystem/ReservationDetail',//获取预约设置内容
    method: 'post',
    data
  })
}
export function getKcListAll(data) {
  return request({
    url: '/SchedCourseshool/getKcListAll', // 教练课表所有课程
    method: 'post',
    data
  })
}
